{include file="public/header"}  
<body>
    <div class="wrapper">
	    {include file="public/nav"}  
	    <div id="page-wrapper" style="min-height: 325px;">
	        <div class="row">
		        <div class="col-lg-12">
		            <h1 class="page-header">添加分类</h1>
		        </div>
	        </div>
	        <div class="row">
		        <div class="col-lg-6">
                    <form role="form" action="insert" method="post">
                        <div class="form-group">
                            <select class="form-control" name="f_id">
                                <option value="0">顶层菜单</option>
                                {volist name="data" id="cat"}
                                <option value="{$cat.cate_id}">{$cat.cate_name}</option>
                                {/volist}
                            </select>
                        </div>
                        <div class="form-group">
                            <label>分类名称</label>
                            <input class="form-control" type="text" name="cate_name">
                            <p class="help-block"></p>
                        </div>
                        <div class="form-group">
                            <label>导航名称</label>
                            <input class="form-control" type="text" name="menu_name">
                            <p class="help-block">如果导航菜单跟分类名称一样，可以不填。</p>
                        </div>
                        <div class="form-group">
                            <label>是否是导航菜单</label>
                            <label class="radio-inline">
                                <input type="radio" name="menu" id="menu" value="0" checked> 否
                            </label>
                            <label class="radio-inline">
                                <input type="radio" name="menu" id="menu" value="1"> 是
                            </label>
                        </div>                
                        <div class="form-group">
                            <input class="btn btn-primary" type="submit" value="提交" />
                        </div>

                    </form>
		        </div>
		        <!-- /.col-lg-12 -->
	        </div>
	        <!-- /.row -->
	    </div>
    </div>
    {include file="public/footer"}
</body>
